package com.bnz.manager.factory;

import com.bnz.manager.client.UserClient;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FallbackFactory;

//@Component
public class MyUserFallBackImpl implements FallbackFactory<UserClient> {
    @Override
    public UserClient create(Throwable cause) {
        return (UserClient)AjaxResult.error("bnz-user--->findByName()服务出现问题");
    }
}
